package com.shihb.structuralpatterns.compositepattern;/**
 *Description:组合模式
 *Version:1.0.0
 *@author shihb
 *@date 2020/4/21 11:20
 */
public abstract class Organization {
  private String name;

  public Organization(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  protected void add(Organization organization){

  }
  protected void remove(Organization organization){

  }
  // 子类必须要实现的
  protected abstract void  show();
}
